{% extends 'myapp/base.html' %}

{% block main_body %}
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1 >
            AI智能分析
            <small>智能医疗系统</small>
        </h1>

        <ol class="breadcrumb">
            <li><a href="{% url 'myapp_index' %}"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">AI智能分析</li>
        </ol>
    </section>


        <!DOCTYPE html>
        <html>
        <head>
            <style>
                table {
                    border-collapse: collapse;
                    width: 100%;
                    font-family: Arial, sans-serif;
                    font-size: 14px;
                    text-align: center;
                }
                th {
                    background-color: #75a0cc;
                    color: rgb(255, 255, 255);
                    font-size: 18px;
                    text-align: center;
                }
                td, th {
                    border: 1px solid #ddd;
                    padding: 6px;
                }
                tr:nth-child(even) {
                    background-color: #f5f5f5;
                }
            </style>
        </head>
        <body>
            <table>
                <thead>
                    <tr>
                        <th>操作</th>
                        <th>住院号</th>
                        <th>病人姓名</th>
                        <th>性别</th>
                        <th>科室</th>
                        <th>医生姓名</th>>
                    </tr>
                </thead>

                <tbody> 
                    {% for obj in patientinfolist %}
                    <tr>
                        <td>
                            <a href="{% url 'myapp_AI_data' obj.hspid %}" class="btn btn-sm btn-s">查看</a>
                        </td>
                        <td>{{ obj.hspid }}</td>
                        <td>{{ obj.name }}</td>
                        <td>{{ obj.gender }}</td>
                        <td>{{ obj.departname }}</td>
                        <td>{{ obj.doctorname }}</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </body>
        </html>
        

{% endblock %}